package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    @GetMapping("/test")
    public String test(){
        return "success";
    }

    @GetMapping("/say")
    public String say(){
        return "hi,everybody";
    }

    @GetMapping("/login")
    public String login(){
        return "登陆成功";
    }

    @GetMapping("/out")
    public String out(){
        return "登出成功";
    }

    @GetMapping("/index")
    public String index(){
        return "首页";
    }

    @GetMapping("/header")
    public String header(){
        return "头部";
    }

    @GetMapping("/bottom")
    public String bottom(){
        return "底部";
    }

}